<div class="container">
    <div>
        <h3>Show</h3>
        <form action="<?php echo URL; ?>categories/viewall" method="POST">
              <?php
				 
              
                 foreach( $categories as $category )  {
			       //echo $digitalcontent->digital_content_id;
				?> 
					    <td><?php if (isset($category->category_id)) echo htmlspecialchars($category->category_id, ENT_QUOTES, 'UTF-8'); ?></td>
						<td><?php if (isset($category->name_en)) echo htmlspecialchars($category->name_en, ENT_QUOTES, 'UTF-8'); ?></td>
		    		    <td><?php if (isset($category->name_ar)) echo htmlspecialchars($category->name_ar, ENT_QUOTES, 'UTF-8'); ?></td>
		    		  					
			<?php
			}
			
			?>
        </form>
    </div>
</div>

